import request from '@/http'
import config from '@/http/config'

const api = `${config.assist.ip}/api/assist`
/*
* 删除收藏历史
* method：post
* params:{}
* jiansuolsid-收藏历史Id
* 最大值: 10000;最小值: 1;mock: 1
* */
export const deleteCollectionHistory = (data) => request({
  url:`${api}/searchHistory/deleteCollectionHistory`,
  method:'post',
  data
})


/*
* 删除检索历史
* method：post
* params:{}
* jiansuolsid-收藏历史Id
* 最大值: 10000;最小值: 1;mock: 1
* */
export const deleteSearchHistory = (data) => request({
    url:`${api}/searchHistory/deleteSearchHistory`,
    method:'post',
    data
  })


/*
* 收藏检索历史
* method：post
* params:{}
* jiansuolsid-收藏历史Id
* 最大值: 10000;最小值: 1;mock: 1
* */
export const collectionHistory = (data) => request({
    url:`${api}/searchHistory/collectionHistory`,
    method:'post',
    data
  })


/*
* 获取收藏历史列表
* method：post
* params:{}
* 无
* 最大值: 10000;最小值: 1;mock: 1
* */
export const getCollectionHistoryList = (data) => request({
    url:`${api}/searchHistory/showCollectionHistoryList`,
    method:'post',
    data
  })


/*
* 获取检索历史列表
* method：post
* params:{}
* jiansuolsid-收藏历史Id
* 最大值: 10000;最小值: 1;mock: 1
* */
export const getSearchHistoryList = (data) => request({
    url:`${api}/searchHistory/showSearchHistoryList`,
    method:'post',
    data
  })

